#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
int main()
{
    //int fd=open("bite",O_CREAT|O_TRUNC|O_WRONLY,0666);
    int fd=open("bite",O_RDONLY);
    if(fd<0) 
    {
        perror("open");
        exit(1);
    }
    //char str[1024]="i like linux!";
    //write(fd,str,sizeof(str));
    char buff[1024];
    read(fd,buff,sizeof(buff));
    printf("%s\n",buff);
    close(fd);
    return 0;
}
